<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			*{
				padding: 0;
				margin: 0;
			}
			.nav{
				width: 960px;
				height: 40px;
				margin: 100px auto;
				border: 1px solid red;
			}
			.nav ul{
				list-style-type: none;
			}
			.nav ul li{
				float: left;
				width: 120px;
				height: 40px;
				/*让文字水平居中*/
				text-align: center;
				/*line-height是行高,和height值一样,文字就会垂直居中*/
				line-height: 40px;
			}
			.nav ul li a{
				display: block;
				text-decoration: none;
				width: 120px;
				height: 40px;
			}
			.nav ul li a:link{
				/*粗体*/
				font-weight: bold;
				color: rgb(88,88,88);
			}
			.nav ul li a:hover{
				background-color: rgb(153, 0, 0);
				/*粗体*/
				font-weight: bold;
				color: white;
			}
		</style>
	</head>
	<body>
		<div class="nav">
			<ul>
				<li><a href="#">网站首页</a></li>
				<li><a href="#">机构设置</a></li>
				<li><a href="#">招生就业</a></li>
				<li><a href="#">师资队伍</a></li>
				<li><a href="#">学校概况</a></li>
				<li><a href="#">网站栏目</a></li>
				<li><a href="#">网站栏目</a></li>
				<li><a href="#">网站栏目</a></li>
			</ul>
		</div>
		
	</body>
</html>
